package com.qingke.java.service.command;

import com.qingke.java.pojo.User;

public abstract class CommandFactory {
	
	public static CommandFactory buildFactory(User user) {
		if(user != null) {
			return new PlayerCommandFactory(user);
		}
		return new SystemCommandFactory();
	}
	
	public abstract Command buildCommand(CommandCode cc);
}
